package com.ruoyi.project.curricula.service.impl;

import com.ruoyi.project.curricula.domain.STCurriCula;
import com.ruoyi.project.curricula.mapper.STCurriCulaMapper;
import com.ruoyi.project.curricula.service.STCurriCulaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class STCurriCulaServiceImpl implements STCurriCulaService {
    @Autowired
    private STCurriCulaMapper stCurriCulaMapper;
    @Override
    public List<STCurriCula> selectSTCurriculaList(STCurriCula curricula) {
        return stCurriCulaMapper.selectSTCurriculaList(curricula);
    }

    @Override
    public List<STCurriCula> selectSTCurriculaList2(STCurriCula curricula) {
        return stCurriCulaMapper.selectSTCurriculaList2(curricula);
    }

//    @Override
//    public int updateCurriCula(Long id ) {
//
//        return stCurriCulaMapper.updateCurriCula(id);
//    }

    @Override
    public int insertCul(Long id, Long userId) {
        return stCurriCulaMapper.insertCul(id, userId);
    }

    @Override
    public int result(Long id) {
        return stCurriCulaMapper.result(id);
    }

    @Override
    public int classStates(Long userId, Long id) {
        return stCurriCulaMapper.classStates(userId,id);
    }

    @Override
    public int cleanCurriCula(Long id) {
        return stCurriCulaMapper.cleanCurriCula(id);
    }

    @Override
    public int xuanCurriCula(Long id , Long userId) {
        return  stCurriCulaMapper.xuanCurriCula(id,userId);

    }


}
